home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / OverviewPane$AddModuleUndoable.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.5 KB  |  44 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseUndoable;
  4. import com.extensibility.app.BaseWindow;
  5. import com.extensibility.app.UI;
  6. import com.extensibility.xml.ExternalPEDeclaration;
  7. import com.extensibility.xml.URI;
  8.  
  9. public class OverviewPane$AddModuleUndoable extends BaseUndoable {
  10.    // $FF: synthetic field
  11.    final OverviewPane this$0;
  12.    URI uri;
  13.    URI intoURI;
  14.    String name;
  15.    ExternalPEDeclaration xpe;
  16.  
  17.    public OverviewPane$AddModuleUndoable(OverviewPane var1, BaseWindow var2, URI var3, URI var4, String var5) {
  18.       super(var2);
  19.       this.this$0 = var1;
  20.       this.uri = var3;
  21.       this.intoURI = var4;
  22.       this.name = var5;
  23.    }
  24.  
  25.    public String getPresentationName() {
  26.       return UI.getString("undo.overview.include");
  27.    }
  28.  
  29.    public void undo() {
  30.       super.undo();
  31.       this.this$0.doRemoveDecl(this.xpe);
  32.       this.xpe = null;
  33.    }
  34.  
  35.    public void doCommand() {
  36.       this.xpe = this.this$0.doAddModule(this.uri, this.intoURI, this.name);
  37.    }
  38.  
  39.    public void redo() {
  40.       super.redo();
  41.       this.doCommand();
  42.    }
  43. }
  44.